package com.itheima.demo.pojo;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask;

import java.io.Serializable;

public class Notice implements Serializable {
 
	public void callEmployee(DelegateTask task) {
		String assignee = (String)task.getVariable("employee");
		System.out.println("事件：" + task.getEventName() + "，"
				+ assignee + " 有一个新的待办");
	}
	
	public void callComplete(DelegateExecution execution) {
		System.out.println("事件：" + execution.getEventName() +
				"，" + execution.getProcessInstanceBusinessKey() + " 流程完成");
	}
}
